home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Bus / C / Commander 2.1 Demo .sit / Commander 2.1 Demo / 4D Reference Info Demo.rsrc / TEXT_5529_Execution Cycle Rules.txt < prev    next >
Encoding:
Text File  |  1994-11-09  |  1.3 KB  |  25 lines

  1. General Rules for the Execution Cycle
  2.  
  3.  
  4. Here are some general rules concerning the execution cycle:
  5.  
  6. ‚Ä¢ For each phase of the execution cycle, the procedures that exist are executed in the following order:
  7.  
  8.       1. The script(s) is/are executed.
  9.  
  10.       2. The file procedure is executed (for data entry only).
  11.  
  12.       3. The layout procedure is executed.
  13.  
  14.  
  15. ‚Ä¢ In the ¬†Before and ¬†After phases, all scripts are executed, except scripts in which the Script Only if Modified check box is checked.
  16.  
  17. ‚Ä¢ The scripts for objects used for data entry are executed in the data entry order.
  18.  
  19. ‚Ä¢ The scripts for objects not used for data entry are executed in an undefined order. Your scripts should not rely on the order in which they are executed.
  20.  
  21. ‚Ä¢ During data entry, only the ¬†During phase of the script for the modified object is executed unless the Script Only if Modified check box is unchecked. For example, when a field is modified, only that field's script will be executed.
  22.  
  23. ‚Ä¢ When records are being printed or displayed on-screen, only the scripts of the objects being printed or displayed are executed, and then only if the Script Only if Modified check box is unchecked. For example, the script of a variable in a header is executed only when the header is printed (the In Header phase).
  24.  
  25.